/* ==================== 文章合集页面样式 ==================== */

/* 文章合集卡片样式 */
.article-collection {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-collection:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  border-color: var(--vp-c-brand-2);
}

.collection-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collection-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--vp-c-brand-1);
}

.collection-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--vp-c-brand-1);
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.collection-link:hover {
  background: var(--vp-c-brand-3);
  transform: translateX(2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .article-collection {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .collection-link {
    width: 100%;
    justify-content: center;
  }
}

/* 暗色模式适配 */
.dark .article-collection {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

.dark .article-collection:hover {
  border-color: var(--vp-c-brand-2);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.dark .collection-desc {
  color: #94a3b8;
}
